import time
import asyncio

now = lambda:time.time()
start = now()

async def doSometing(x):
	print('Waiting:{}'.format(x))
	return('Done after {}s'.format(x))

coroutine = doSometing(2)
loop = asyncio.get_event_loop()
task = asyncio.ensure_future(coroutine)
loop.run_until_complete(task)

print('task ret:{}'.format(task.result()))
print('task use {}s'.format(now() - start))

	